package common;

import java.io.Serializable;

/**
 * This class represents course of exam
 *
 */
public class Course implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3487656562848219047L;
	private int  cid;
	private String cname;
	
	/**
	 * Default constructor
	 */
	public Course() {
		
	}
	
	/**
	 * Course id getter
	 * @return Course ID
	 */
	public int getId() {
		return cid;
	}
	
	/**
	 * Course ID setter
	 * @param cid
	 */
	public void setId(int cid) {
		this.cid = cid;
	}
	
	/**
	 * Course name getter
	 * @return Course name
	 */
	public String getName() {
		return cname;
	}
	
	/**
	 * Course name setter
	 * @param cname
	 */
	public void setName(String cname) {
		this.cname = cname;
	}
	
	/**
	 * String representation of the object
	 */
	public String toString(){
		return getName();
	}
	
}
